Git & GitHub Version Control Workflow (Dark Mode)

1️ Initialize Repository

git init

2️ Add & Commit Files

git add . git commit -m "Initial commit"

3️ Push to GitHub

git remote add origin https://github.com/username/repo.git git push -u origin main

4️ Create & Switch Branch

git branch feature-ui git checkout feature-ui

5️ Merge Branch

git checkout main git merge feature-ui

6️ Pull Latest Changes

git pull origin main